package com.oo.packaging_2.commodity;

/**
 * CommodityTest--${description}
 *
 * @author: Jovi
 * @createTime: 2017-04-19 15:36
 **/
public class CommodityTest {

    public static void main(String[] args) {
        CommodityType commodityType = new CommodityType("A001", "洗发水");
        Commodity commodity = new Commodity(001, "潘婷洗发水400ml", commodityType, 10, 12);
        commodity.check();
        System.out.println("==================");
        Commodity commodity1 = new Commodity();
        commodity1.setName("飘柔洗发水250ml");
        commodity1.setPrice(19);
        commodity1.setCount(10);
        commodity1.setCommodityType(commodityType);
        commodity1.check();
    }
}
